package baseUserService

import (
	"learn/app/models/baseUserModel"
	"learn/app/services/cs"
)

type Role struct {
	cs.BaseService
}

func (obj *Role) Add(input map[string]interface{}) (bool, uint64) {
	inserId := new(baseUserModel.Role).Add(input)
	if inserId == 0 {
		return false, inserId
	}
	return true, inserId
}

func (obj *Role) List() ([]map[string]interface{}, int64) {
	return new(baseUserModel.Role).List()
}

func (obj *Role) Update(input map[string]interface{}) (bool, uint64) {

	inserId := new(baseUserModel.Role).Update(input)
	if inserId == 0 {
		return false, inserId
	}
	return true, inserId
}

func (obj *Role) Del(input map[string]interface{}) (bool, uint64) {

	inserId := new(baseUserModel.Role).Del(input)
	if inserId == 0 {
		return false, inserId
	}
	return true, inserId
}
